package com.victorywang.RetrofitWebService;

import com.victorywang.RetrofitWebService.dsrequest.DsRequestEnvelopte;
import com.victorywang.RetrofitWebService.dsresponse.DsResponseEnvelope;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by LM on 2017/10/19.
 */

public interface DsApiStore {
    /*
     * 指定请求头:
     * "Content-Type: text/xml; charset=utf-8"指定文本格式,及编码格式
     * SOAPAction的值为
     * 分解为http://tempuri.org/ + AssetMaterialInfo,其实就是命名空间+接口名
     */
    @Headers({
            "Content-Type: text/xml; charset=utf-8",
            "SOAPAction: http://tempuri.org/DataService"
    })
    @POST("base/baseservice.asmx")
    Call<DsResponseEnvelope> getAssetInfo(@Body DsRequestEnvelopte dsRequestEnvelopte);
}
